﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectSchedule.Entity
{
    /// <summary>
    /// 分段工期表
    /// </summary>
    public class CTSectionTime
    {
        public string ShipName { get; set; }
        public string SectionName { get; set; }

        /// <summary>
        /// 预制工期
        /// </summary>
        public int Pretreat { get; set; }
        public int PretreatInterval { get; set; }
        /// <summary>
        /// 下料工期
        /// </summary>
        public int Cutting { get; set; }
        public int CuttingInterval { get; set; }
        /// <summary>
        /// 小组工期
        /// </summary>
        public int SmallGroup { get; set; }
        public int SmallGroupInterval { get; set; }
        /// <summary>
        /// 中组工期
        /// </summary>
        public int MediumGroup { get; set; }
        public int MediumGroupInterval { get; set; }
        /// <summary>
        /// 中合A工期
        /// </summary>
        public int MediumMergeA { get; set; }
        public int MediumMergeAInterval { get; set; }
        /// <summary>
        /// 中涂工期
        /// </summary>
        public int MediumPainting { get; set; }
        public int MediumPaintingInterval { get; set; }
        /// <summary>
        /// 中合B工期
        /// </summary>
        public int MediumMergeB { get; set; }
        public int MediumMergeBInterval { get; set; }
        /// <summary>
        /// 大合工期
        /// </summary>
        public int LargeMerge { get; set; }
        public int LargeMergeInterval { get; set; }
        /// <summary>
        /// 试航工期
        /// </summary>
        public int TrialTrip { get; set; }
        public int TrialTripInterval { get; set; }

        public Int32 TotalDays
        {
            get
            {
                return Pretreat + Cutting + SmallGroup + MediumGroup + MediumMergeA + MediumPainting + LargeMerge;
            }
        }
    }
}
